/*    */ package org.jeecgframework.p3.cg.factory;
/*    */ 
/*    */ import java.io.File;
/*    */ import java.io.FileWriter;
/*    */ import java.io.IOException;
/*    */ import java.io.Writer;
/*    */ 
/*    */ public class ToolUtil
/*    */ {
/*    */   public static void writeFile(File file, String mesInfo)
/*    */     throws IOException
/*    */   {
/* 13 */     if (file == null) {
/* 14 */       throw new IllegalStateException("logFile can not be null!");
/*    */     }
/* 16 */     Writer txtWriter = new FileWriter(file, true);
/* 17 */     txtWriter.write(mesInfo + "\n");
/* 18 */     txtWriter.flush();
/*    */   }
/*    */ }


/* Location:              /Users/guo/.m2/repository/org/jeewxframework/P3-Codegenerate/2.0.1/P3-Codegenerate-2.0.1.jar!/org/jeecgframework/p3/cg/factory/ToolUtil.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */